﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin/Admin.Master" Inherits="System.Web.Mvc.ViewPage<ShopOnline.Models.SentMail>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="../../Content/Styles/validationEngine.jquery.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.6.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validationEngine-en.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validationEngine.js" type="text/javascript"></script>
         <script>
             jQuery(document).ready(function () {
                 // binds form submission and fields to the validation engine
                 jQuery("#formID").validationEngine();
             });         
        </script>
<div class="w_container m10-tb  fl">
        <div class="w_container fl">
            <div class="titleheader bold fl">
                Administration Session
            </div>
            <div class="titleheader fr">
                Back to <a class="orange" href="/Admin/Index">Cpanel</a></div>
            <div class="w_container titleheader fl align-l">
                <div class="fl">
                    Cpanel |
                </div>
                <div class="orange fl">
                    Chỉnh sửa Góp ý
                </div>
            </div>
        </div>
       <div class="w_container m10-tb  fl">
            <div class="sub_container fl">
                <form method="post" enctype="multipart/form-data" id="formID" class="formular">
                <div class=" w_container fl m5-tb">
                    <div class=" title-item fl">
                       Họ tên
                    </div>
                    <div class="input-item fl">

                        <input type="text" id="name" name="name" class="validate[required]" value="<%= Model.name %>" />
                    </div>
                </div>
                <div class=" w_container fl m5-tb">
                    <div class=" title-item fl">
                        Địa chỉ
                    </div>
                    <div class="input-item fl">

                       <input type="text" id="address" name="address" class="validate[required]" value="<%= Model.address %>"/>
                    </div>
                </div>
                <div class=" w_container fl m5-tb">
                    <div class=" title-item fl">
                       Điện thoại
                    </div>
                    <div class="input-item fl">
                        <input type="text" id="phone" name="phone" class="validate[required]" value="<%= Model.phone %>" />
                    </div>
                </div>
               <div class=" w_container fl m5-tb">
                    <div class=" title-item fl">
                       Email  
                    </div>
                    <div class="input-item fl">
                        <input type="text" id="email" name="email" class="validate[required]" value="<%= Model.email %>"/>
                    </div>
                </div>
               <div class=" w_container fl m5-tb">
                    <div class=" title-item fl">
                       Tiêu đề
                    </div>
                    <div class="input-item fl">
                         <input type="text" id="title" name="title" class="validate[required]" value="<%= Model.title %>" />
                    </div>
                </div>
 
               <div class=" w_container fl m5-tb">
                    <div class=" title-item fl">
                       Nội dung
                    </div>
                    <div class="input-item fl">
                        <textarea id="body" name="body"  style = "width: 99%; height:150px;"  class='validate[required] text-input' ><%=Model.body %></textarea>
                    </div>
                </div> 
                <div class=" w_container fl m5-tb">
                    <div class=" title-item fl">
                       Hiển thị
                    </div>
                    <div class="input-item fl">
                        <%= Html.CheckBox("show","") %>
                    </div>
                </div>                 
                <div class=" w_container fl m5-tb">
                    <div class=" title-item fl">
                        &nbsp;
                    </div>
                    <div class="input-item fl">
                        <input type="submit" value="Lưu" class="ui-state-default ui-corner-all button fl" />
                        <a class="ui-state-default ui-corner-all button fl" href="/Sendmail/AdminListSendmail">
                            Hủy Bỏ </a>
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
</asp:Content>

